package lang

/*
	bool, for JSON booleans
	float64, for JSON numbers
	string, for JSON strings
	[]interface{}, for JSON arrays
	map[string]interface{}, for JSON objects
	nil for JSON null
*/
type JsonObjectStruct struct {
	// Field appears in JSON as key "myName".
	Field1 int `json:"myName"`

	// Field appears in JSON as key "myName" and
	// the field is omitted from the object if its value is empty,
	// as defined above.
	Field2 int `json:"Field2,omitempty"`

	// Field appears in JSON as key "Field" (the default), but
	// the field is skipped if empty.
	// Note the leading comma.
	Field int `json:",omitempty"`

	// Field is ignored by this package.
	Field3 int `json:"-"`

	// Field appears in JSON as key "-".
	Field4 int `json:"-,"`
}
